package com.coolgor.axnut.entity.mdmis;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 保单信息实体类
 * @author CoolGor
 */
public class PolicyCondition extends Policy{
	//接件日期 来到广西的日期
	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
	private Date introTimeBegin; 
	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
	private Date introTimeEnd; 	
	//投保日期
	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
	private Date insureTimeBegin; 
	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
	private Date insureTimeEnd; 	
	//回销时间
	//@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
	private Date receiptTimeBegin; 
	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
	private Date receiptTimeEnd; 
	//回退日期
	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
	private Date returnTimeBegin; 
	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
	private Date returnTimeEnd; 
	//撤件日期
	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
	private Date cancelTimeBegin; 
	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
	private Date cancelTimeEnd; 
	//退保日期
	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
	private Date surrenderTimeBegin; 
	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
	private Date surrenderTimeEnd; 
	//递送次数
	private Integer deliverCount1; 
	private Integer deliverCount2; 
	
	public PolicyCondition() {
		super();
	}
	
	public PolicyCondition(Policy policy) {
		this.setInsureNo(policy.getInsureNo());
		this.setProject(policy.getProject());
		this.setPolicyType(policy.getPolicyType());
		this.setIntroTime(policy.getIntroTime());
		this.setInsureTime(policy.getInsureTime());
		this.setApplicant(policy.getApplicant());
		this.setMobilephone(policy.getMobilephone());
		this.setArea(policy.getArea());
		this.setTelephone(policy.getTelephone());
		this.setAddress(policy.getAddress());
		this.setProduct(policy.getProduct());
		this.setPremium(policy.getPremium());
		this.setTsrName(policy.getTsrName());
		this.setTsrGroup(policy.getTsrGroup());
		this.setStatus(policy.getStatus());
		this.setStatusInfo(policy.getStatusInfo());
		this.setReceiptTime(policy.getReceiptTime());
		this.setReturnTime(policy.getReturnTime());
		this.setCancelTime(policy.getCancelTime());
		this.setSurrenderTime(policy.getSurrenderTime());
		this.setDeliverCount(policy.getDeliverCount());
		this.setRemark(policy.getRemark());
	}

	public Date getIntroTimeBegin() {
		return introTimeBegin;
	}

	public void setIntroTimeBegin(Date introTimeBegin) {
		this.introTimeBegin = introTimeBegin;
	}

	public Date getIntroTimeEnd() {
		return introTimeEnd;
	}

	public void setIntroTimeEnd(Date introTimeEnd) {
		this.introTimeEnd = introTimeEnd;
	}

	public Date getInsureTimeBegin() {
		return insureTimeBegin;
	}

	public void setInsureTimeBegin(Date insureTimeBegin) {
		this.insureTimeBegin = insureTimeBegin;
	}

	public Date getInsureTimeEnd() {
		return insureTimeEnd;
	}

	public void setInsureTimeEnd(Date insureTimeEnd) {
		this.insureTimeEnd = insureTimeEnd;
	}

	public Date getReceiptTimeBegin() {
		return receiptTimeBegin;
	}

	public void setReceiptTimeBegin(Date receiptTimeBegin) {
		this.receiptTimeBegin = receiptTimeBegin;
	}

	public Date getReceiptTimeEnd() {
		return receiptTimeEnd;
	}

	public void setReceiptTimeEnd(Date receiptTimeEnd) {
		this.receiptTimeEnd = receiptTimeEnd;
	}

	public Date getReturnTimeBegin() {
		return returnTimeBegin;
	}

	public void setReturnTimeBegin(Date returnTimeBegin) {
		this.returnTimeBegin = returnTimeBegin;
	}

	public Date getReturnTimeEnd() {
		return returnTimeEnd;
	}

	public void setReturnTimeEnd(Date returnTimeEnd) {
		this.returnTimeEnd = returnTimeEnd;
	}

	public Date getCancelTimeBegin() {
		return cancelTimeBegin;
	}

	public void setCancelTimeBegin(Date cancelTimeBegin) {
		this.cancelTimeBegin = cancelTimeBegin;
	}

	public Date getCancelTimeEnd() {
		return cancelTimeEnd;
	}

	public void setCancelTimeEnd(Date cancelTimeEnd) {
		this.cancelTimeEnd = cancelTimeEnd;
	}

	public Date getSurrenderTimeBegin() {
		return surrenderTimeBegin;
	}

	public void setSurrenderTimeBegin(Date surrenderTimeBegin) {
		this.surrenderTimeBegin = surrenderTimeBegin;
	}

	public Date getSurrenderTimeEnd() {
		return surrenderTimeEnd;
	}

	public void setSurrenderTimeEnd(Date surrenderTimeEnd) {
		this.surrenderTimeEnd = surrenderTimeEnd;
	}

	public Integer getDeliverCount1() {
		return deliverCount1;
	}

	public void setDeliverCount1(Integer deliverCount1) {
		this.deliverCount1 = deliverCount1;
	}

	public Integer getDeliverCount2() {
		return deliverCount2;
	}

	public void setDeliverCount2(Integer deliverCount2) {
		this.deliverCount2 = deliverCount2;
	}

	@Override
	public String toString() {
		return "PolicyCondition [getIntroTimeBegin()=" + getIntroTimeBegin() + ", getIntroTimeEnd()="
				+ getIntroTimeEnd() + ", getInsureTimeBegin()=" + getInsureTimeBegin() + ", getInsureTimeEnd()="
				+ getInsureTimeEnd() + ", getReceiptTimeBegin()=" + getReceiptTimeBegin() + ", getReceiptTimeEnd()="
				+ getReceiptTimeEnd() + ", getReturnTimeBegin()=" + getReturnTimeBegin() + ", getReturnTimeEnd()="
				+ getReturnTimeEnd() + ", getCancelTimeBegin()=" + getCancelTimeBegin() + ", getCancelTimeEnd()="
				+ getCancelTimeEnd() + ", getSurrenderTimeBegin()=" + getSurrenderTimeBegin()
				+ ", getSurrenderTimeEnd()=" + getSurrenderTimeEnd() + ", getDeliverCount1()=" + getDeliverCount1()
				+ ", getDeliverCount2()=" + getDeliverCount2() + ", getInsureNo()=" + getInsureNo() + ", getProject()="
				+ getProject() + ", getIntroTime()=" + getIntroTime() + ", getInsureTime()=" + getInsureTime()
				+ ", getApplicant()=" + getApplicant() + ", getMobilephone()=" + getMobilephone() + ", getArea()="
				+ getArea() + ", getTelephone()=" + getTelephone() + ", getAddress()=" + getAddress()
				+ ", getProduct()=" + getProduct() + ", getPremium()=" + getPremium() + ", getTsrName()=" + getTsrName()
				+ ", getTsrGroup()=" + getTsrGroup() + ", getStatus()=" + getStatus() + ", getStatusInfo()="
				+ getStatusInfo() + ", getReceiptTime()=" + getReceiptTime() + ", getReturnTime()=" + getReturnTime()
				+ ", getCancelTime()=" + getCancelTime() + ", getSurrenderTime()=" + getSurrenderTime()
				+ ", getDeliverCount()=" + getDeliverCount() + ", getRemark()=" + getRemark() + ", toString()="
				+ super.toString() + ", getClass()=" + getClass() + ", hashCode()=" + hashCode() + "]";
	}	
	
}
